#include <stdint.h>
#include <stdlib.h>
#include <assert.h>

int main(int argc, char *argv[], char *envp[]);
extern char **environ;
void call_main(uintptr_t *args) {
	char *empty[] =  {NULL };
	environ = empty;
	/**
	 * 调用 "navy-apps/libs/libc/src/stdlib/exit.c" 下的 "void exit(int code)" 函数,
	 * 再调用 "navy-apps/libs/libos/src/syscall.c" 下的 "void _exit(int status)",
	 * 再调用 "_syscall_(SYS_exit, status, 0, 0)"
	*/
	exit(main(0, empty, empty));
	assert(0);
}
